Byteflight
 
 
 Bean Byteflight
 
Byteflight communication interface

User types are derived from basic types and they are designed for usage in driver interface. The following types are supported: pointer, array, structure, union and user declaration.

User types:

  • BeanName_TError : user definition
    typedef union {                   /* Status flags. */
      byte status;
      struct {
        bool OpticalDiagnosis :1;     /* Internal error bit of optical transceiver */
        bool XSync            :1;     /* Valid Sync pulse has been received */
        bool                  :1;
        bool SlotMismatch     :1;     /* Slot mismatch */
        bool NormalSync       :1;     /* Normal sync pulse has been received */
        bool AlarmSync        :1;     /* Alarm sync pulse has been received */
        bool Wakeup           :1;     /* Wakeup condition */
        bool RcvFIFO          :1;     /* FIFO not empty */
      }statusName;
    }BeanName_TStatus;
    Error flags.
  • BeanName_TStatus : user definition
    typedef union {              /* Error flags. */
      byte err;
      struct {
        bool              :1;
        bool LockingError :1;       /* Two receive or transmit buffers are locked at the same time */
        bool IllegalPulse :1;       /* Illegal pulse error */
        bool LostSync     :1;       /* Sync pulse lost error */
        bool TooEarlySync :1;       /* Sync pulse too early error */
        bool FrameError   :1;       /* Message format (Frame, CRC) error */
        bool Overrun      :1;       /* Receive FIFO overrun */
        bool              :1;
      }errName;
    } BeanName_TError;
    Status flags.



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.